package com.itheima.myArraylist.test1;

import java.util.Arrays;

public class test1 {
    public static void main(String[] args) {
        Student<String> stu = new Student<>();
        stu.setType("张三");
        System.out.println(stu.getType());

        System.out.println("---------------");
        Student<Integer> stu2 = new Student<>();
        stu2.setType(28);
        System.out.println(stu2.getType());

        System.out.println("----------------");
        Student<int[]> stu3 = new Student<>();
        int[] arr = {11,55,3,6};
        stu3.setType(arr);
        System.out.println(Arrays.toString(arr));//Arrays.toString是将地址值打印为数据

    }
}
